<?php
	include_once "dataservice.php";
	
	class visitor_db
	{
		public function CapNhat()
		{
			$sql = "UPDATE tbl_visitor SET NumVisitor = NumVisitor + 1";
			
			$db  = new dataservice();
			$ret = $db->ExecuteNonQuery($sql);
			return $ret;
		}
		
		public function LayDanhSach()
		{
			$sql = "SELECT NumVisitor FROM tbl_visitor WHERE (1)";
			
			$db = new dataservice();
			$ret = $db->ExecuteQuery($sql);
			return $ret;
		}
	}
?>